<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>课程编辑</title>
    <style>
        form {
            margin: 20px auto;
            width: 500px;
            border: 1px solid #ccc;
            padding: 20px
        }
    </style>
</head>
<body>
<form method="post" action="../course_edit/">
    {% csrf_token %}
    <input type="hidden" name="id" value="{{ course.id }}"/>

    <table>
        <tr>
            <th>课程名称</th>
            <td><input name="course" value="{{ course.course }}"></td>
        </tr>
        <tr>
            <th>教师编号</th>
            <td><input name="teacher_id" value="{{ course.teacher_id }}"/></td>
        </tr>
        <tr>
            <th>价格</th>
            <td><input name="price" value="{{ course.price }}"/></td>
        </tr>
        <tr>
            <th>是否收费</th>
            <td><input name="price_bool" value="{{ course.price_bool }}"/></td>
        </tr>
        <tr>
            <th>考试方式</th>
            <td><input name="test_way" value="{{ course.test_way }}"/></td>
        </tr>
        <tr>
            <th>视频时长</th>
            <td><input name="video_time" value="{{ course.video_time }}"/></td>
        </tr>
        <tr>
            <th>题库数量</th>
            <td><input name="number" value="{{ course.number }}"/></td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit"/>
            </td>
        </tr>
    </table>
</form>
</body>
</html>